package com.athuiju.fenxiaoback.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * spu表，该表描述的是一个抽象性的商品，比如 iphone8
 * </p>
 *
 * @author athuiju
 * @since 2021-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbSpu对象", description="spu表，该表描述的是一个抽象性的商品，比如 iphone8")
public class TbSpu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "spu id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "当前商品的sku id")
    private String defaultSelectskuId;


    @ApiModelProperty(value = "添加时间")
    @TableField(fill= FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "商品图片")
    private String spuImage;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "子标题")
    private String subTitle;

    @ApiModelProperty(value = "1级类目id")
    private Long cid1;

    @ApiModelProperty(value = "2级类目id")
    private Long cid2;

    @ApiModelProperty(value = "3级类目id")
    private Long cid3;

    @ApiModelProperty(value = "商品所属品牌id")
    private Long brandId;

    @ApiModelProperty(value = "是否上架，0下架，1上架")
    private Boolean saleable;

    @ApiModelProperty(value = "是否有效，0已删除，1有效")
    private Boolean valid;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Boolean isDeleted;

    private Integer version;


    @ApiModelProperty(value = "特殊规格参数")
    private String specialSpec;

    @ApiModelProperty(value = "通用规格参数")
    private String genericSpec;

    @ApiModelProperty(value = "商品描述信息")
    private String description;

    @ApiModelProperty(value = "商品卖点")
    private String sellpoint;

    @ApiModelProperty(value = "已售多少件")
    private Integer soldout;

    @ApiModelProperty(value = "包装清单")
    private String packingList;

    @ApiModelProperty(value = "售后服务")
    private String afterService;




}
